import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import VueRouter from 'vue-router'
import store from '../store'
import $ from 'jquery'
import Home from './pages/home.vue'
import Admin from './pages/admin.vue'
import Register from './pages/register.vue'
import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.use(ElementUI)
Vue.use(VueRouter)
Vue.use(VueAxios, axios)

const routes = [{
	path:'/',
	component:Home
},{
	path:'/admin',
	component:Admin
},{
	path:'/register',
	component:Register
}]

const router = new VueRouter({
	routes,
	mode:'history'
})

Vue.prototype.$store = store

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
